from rest_framework.pagination import PageNumberPagination


class MyPagination(PageNumberPagination):
    # url中转换分页的参数
    page_query_param = "page"
    # 每页显示几个
    page_size = 5
    # 定制显示几个
    page_size_query_param = "size"
    # 最多显示几个
    max_page_size = 5
